<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Failures due to relocation of the configuration files | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'trb-security-path.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/trb-security-path.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/trb-security-path.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/trb-security-path.html" rel="nofollow" target="_blank">../en/trb-security-path.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch Guide [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="secure-cluster.html">Secure a cluster</a></span>
»
<span class="breadcrumb-link"><a href="security-troubleshooting.html">Troubleshooting security</a></span>
»
<span class="breadcrumb-node">Failures due to relocation of the configuration files</span>
</div>
<div class="navheader">
<span class="prev">
<a href="trb-security-setup.html">« Setup-passwords command fails due to connection failure</a>
</span>
<span class="next">
<a href="security-limitations.html">Security limitations »</a>
</span>
</div>
<div class="section">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="trb-security-path"></a>Failures due to relocation of the configuration files<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/x-pack/docs/en/security/troubleshooting.asciidoc">edit</a>
</h2>
</div></div></div>
<p><span class="strong strong"><strong>Symptoms:</strong></span></p>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
Active Directory or LDAP realms might stop working after upgrading to Elasticsearch 6.3
or later releases. In 6.4 or later releases, you might see messages in the Elasticsearch
log that indicate a config file is in a deprecated location.
</li>
</ul>
</div>
<p><span class="strong strong"><strong>Resolution:</strong></span></p>
<p>By default, in 6.2 and earlier releases, the security configuration files are
located in the <code class="literal">ES_PATH_CONF/x-pack</code> directory, where <code class="literal">ES_PATH_CONF</code> is an
environment variable that defines the location of the
<a href="settings.html#config-files-location" class="ulink" target="_top">config directory</a>.</p>
<p>In 6.3 and later releases, the config directory no longer contains an <code class="literal">x-pack</code>
directory. The files that were stored in this folder, such as the
<code class="literal">log4j2.properties</code>, <code class="literal">role_mapping.yml</code>, <code class="literal">roles.yml</code>, <code class="literal">users</code>, and <code class="literal">users_roles</code>
files, now exist directly in the config directory.</p>
<div class="important admon">
<div class="icon"></div>
<div class="admon_content">
<p>If you upgraded to 6.3 or later releases, your old security
configuration files still exist in an <code class="literal">x-pack</code> folder. That file path is
deprecated, however, and you should move your files out of that folder.</p>
</div>
</div>
<p>In 6.3 and later releases, settings such as <code class="literal">files.role_mapping</code> default to
<code class="literal">ES_PATH_CONF/role_mapping.yml</code>. If you do not want to use the default locations,
you must update the settings appropriately. See
<a href="security-settings.html" class="ulink" target="_top">Security settings in Elasticsearch</a>.</p>
</div>
<div class="navfooter">
<span class="prev">
<a href="trb-security-setup.html">« Setup-passwords command fails due to connection failure</a>
</span>
<span class="next">
<a href="security-limitations.html">Security limitations »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>